<template>
  <div id="app">
    <!-- 在这里缓存的是一级路由的出口 -->
    <keep-alive :include="cachePages">
      <router-view />
    </keep-alive>
  </div>
</template>

<script>
import { mapState } from "vuex";
export default {
  name: "App",
  computed: {
    ...mapState(["cachePages"]),
  },
};
</script>
<style lang="less">
</style>
